ARCH := arm
CROSS_COMPILE := arm-none-linux-gnueabihf-
KERNEL_DIR ?= /home/zehai.chang/work/linux-6.14.2
MODULE_NAME := export_drv

obj-m := $(MODULE_NAME).o
$(MODULE_NAME)-y := export.o

ccflags-y := -fno-unwind-tables -fno-asynchronous-unwind-tables

all:
	make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL_DIR) M=$(PWD) modules

clean:
	make -C $(KERNEL_DIR) M=$(PWD) clean
